function downloadfile_bak(filename) {
  var win = $.messager.progress({
    title:'Waiting Please.',
    msg:'DownLoading.....' 
  });

  var url = '/download/' + filename;

  $.fileDownload(url, {
	  successCallback: function (url) {
      $.messager.progress('close');
	  },
	  failCallback: function (html, url) {
      $.messager.progress('close');
	    $.messager.alert('失败', '请联系系统管理员');
	  }
  });
}


function downloadfile(filename) {
  var win = $.messager.progress({
    title:'Waiting Please.',
    msg:'DownLoading.....' 
  });

  var url = '/download/' + filename;

  $.fileDownload(url, {
	  httpMethod : 'GET',
	  successCallback: function (url) {
      $.messager.progress('close');
	  },
	  failCallback: function (html, url) {
      $.messager.progress('close');
	    $.messager.alert('失败', '请联系系统管理员');
	  }
  });
}